[
https://issues.apache.org/jira/browse/TS-4930?focusedWorklogId=30143&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-30143
]
ASF GitHub Bot logged work on TS-4930:
--------------------------------------
Author: ASF GitHub Bot
Created on: 04/Oct/16 22:51
Start Date: 04/Oct/16 22:51
Worklog Time Spent: 10m
Work Description: Github user jpeach commented on a diff in the pull
request:
https://github.com/apache/trafficserver/pull/1078#discussion_r81870774
--- Diff: proxy/hdrs/MIME.cc ---
@@ -2435,6 +2435,12 @@ mime_scanner_get(MIMEScanner *S, const char
**raw_input_s, const char *raw_input
case MIME_PARSE_AFTER:
// After a LF. Might be the end or a continuation.
if (ParseRules::is_ws(*raw_input_c)) {
+ char *unfold = const_cast<char *>(raw_input_c - 1);
+
+ *unfold-- = ' ';
+ if (ParseRules::is_cr(*unfold)) {
+ *unfold = ' ';
--- End diff --
We can't accept const data if we do this.
Issue Time Tracking
-------------------
Worklog Id: (was: 30143)
Time Spent: 50m (was: 40m)
> Unfold request headers that are using obs continuations
> -------------------------------------------------------
>
> Key: TS-4930
> URL: https://issues.apache.org/jira/browse/TS-4930
> Project: Traffic Server
> Issue Type: Improvement
> Components: HTTP
> Reporter: Leif Hedstrom
> Assignee: Leif Hedstrom
> Fix For: 7.1.0
>
> Time Spent: 50m
> Remaining Estimate: 0h
>
> In RFC 7230, we have
> {code}
> Header fields that span multiple lines ("line folding") are
> deprecated. (Section 3.2.4)
> {code}
> Our recommendation is to unfold these into a single line for now, possibly
> later add an option to make such request generate 40x errors.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)