2010/9/26 Jocelyn Jaubert <jocelyn.jaub...@gmail.com>:
> Le 26 septembre 2010, Guilhem Bonnefille a écrit :
> The one I don't like is this one:
> http://repo.or.cz/w/viking/guyou.git/blobdiff/80e7bc44bcbadfbb6a9146d2ef8968f8f23d4e00..97f7e1e62e0fc17625c445e40f1b326e1402a3f6:/src/curl_download.c
>
> I replaced the \n by \0 in the string to make sure that there is no \n
> added in the headers sent to the server. in HTTP spec, two following \n
> marks the end of the headers section, which is why we must be sure that
> we don't add \n to the strings given to CURLOPT_HTTPHEADER.
>
> There might be a cleaner way to this than the one I used in this
> function...

I rework my change and published a new commit on my public etag branch.

Can you spot me the HTTP specifications?
What I understood (experimenting with viking): not two '\n' but the
classical '\r\n'.


-- 
Guilhem BONNEFILLE
-=- JID: gu...@im.apinc.org MSN: guilhem_bonnefi...@hotmail.com
-=- mailto:guilhem.bonnefi...@gmail.com
-=- http://nathguil.free.fr/

------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today.
http://p.sf.net/sfu/beautyoftheweb
_______________________________________________
Viking-devel mailing list
Viking-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/viking-devel
Viking home page: http://viking.sf.net/

Reply via email to