Review Request: HTTP ioslave: do not require incoming headers to have spaces after colon

Rolf Eike Beer kde at opensource.sf-tec.de
Tue Apr 17 07:47:37 BST 2012



> On April 16, 2012, 11:34 p.m., Dawit Alemayehu wrote:
> > But your change now makes it possible to have a header without any spaces after the colon as well. Despite that only affecting headers from the cache, which what your patch does, I do not see the point here. Do you want to support cases where there is no space between the ':' and the header content ?

Sorry, that sentence from the description got lost somehow:

While we already support "any" as ">= 1, spaces or tabs" by calling trimmed() before checking we have been failing for "any" as in "nothing".

So: yes, this is the whole purpose of this patch.


- Rolf Eike


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://git.reviewboard.kde.org/r/104625/#review12545
-----------------------------------------------------------


On April 16, 2012, 8:30 p.m., Rolf Eike Beer wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> http://git.reviewboard.kde.org/r/104625/
> -----------------------------------------------------------
> 
> (Updated April 16, 2012, 8:30 p.m.)
> 
> 
> Review request for kdelibs.
> 
> 
> Description
> -------
> 
> The RfCs suggest to use a single space after the colon in HTTP headers, but any amount of whitespace is allowed. This has been fixed for Content-Disposition headers a while ago. Now also fix it for the other headers we explicitely check here.
> 
> 
> Diffs
> -----
> 
>   kioslave/http/http.cpp f7aa857 
> 
> Diff: http://git.reviewboard.kde.org/r/104625/diff/
> 
> 
> Testing
> -------
> 
> Still compiles and I see no breakage.
> 
> 
> Thanks,
> 
> Rolf Eike Beer
> 
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20120417/674e45ea/attachment.htm>


More information about the kde-core-devel mailing list