Skip to content

Commit

Permalink
Correct usage for ap_scan_http_token (had used _get_ syntax), noted b…
Browse files Browse the repository at this point in the history
…y Rüdiger

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1754570 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
wrowe committed Jul 29, 2016
1 parent a5d0432 commit f2d66fd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/protocol.c
Original file line number Diff line number Diff line change
Expand Up @@ -945,8 +945,8 @@ AP_DECLARE(void) ap_get_mime_headers_core(request_rec *r, apr_bucket_brigade *bb
else /* Using strict RFC7230 parsing */
{
/* Ensure valid token chars before ':' per RFC 7230 3.2.4 */
if (!(value = (char *)ap_scan_http_token(last_field))
|| *value != ':') {
value = (char *)ap_scan_http_token(last_field);
if ((value > last_field) || *value != ':') {
r->status = HTTP_BAD_REQUEST;
apr_table_setn(r->notes, "error-notes",
apr_psprintf(r->pool,
Expand Down

0 comments on commit f2d66fd

Please sign in to comment.