mirror of https://git.kore.io/kore.git
Remove spdy references
This commit is contained in:
parent
769c78a6e8
commit
e576240e2b
|
@ -11,11 +11,7 @@ page(struct http_request *req)
|
|||
/*
|
||||
* We'll lookup if the X-Custom-Header is given in the request.
|
||||
* If it is we'll set it as a response header as well.
|
||||
*
|
||||
* The value returned by http_request_header() must be freed.
|
||||
*
|
||||
* NOTE: All custom headers you set must be in lower case due to
|
||||
* the SPDYv3 specification requiring this.
|
||||
*/
|
||||
if (http_request_header(req, "x-custom-header", &custom)) {
|
||||
http_response_header(req, "x-custom-header", custom);
|
||||
|
|
|
@ -42,7 +42,7 @@ open_connection(struct http_request *req)
|
|||
{
|
||||
char *host, *port;
|
||||
|
||||
/* Don't want to deal with SPDY connections. */
|
||||
/* Make sure its HTTP. */
|
||||
if (req->owner->proto != CONN_PROTO_HTTP) {
|
||||
http_response(req, HTTP_STATUS_BAD_REQUEST, NULL, 0);
|
||||
return (KORE_RESULT_OK);
|
||||
|
|
Loading…
Reference in New Issue