Remove spdy references

This commit is contained in:
Joris Vink 2015-11-27 16:31:52 +01:00
parent 769c78a6e8
commit e576240e2b
2 changed files with 1 additions and 5 deletions

View File

@ -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);

View File

@ -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);