Date: Sun, 05 Feb 2017 06:08:49 +0000 From: bugzilla-noreply@freebsd.org To: freebsd-ports-bugs@FreeBSD.org Subject: [Bug 216808] sysutils/bsdstats: Missing ${CR} in POST for ports Message-ID: <bug-216808-13@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D216808 Bug ID: 216808 Summary: sysutils/bsdstats: Missing ${CR} in POST for ports Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Many People Priority: --- Component: Individual Port(s) Assignee: freebsd-ports-bugs@FreeBSD.org Reporter: yscrappy@gmail.com CC: yuri@rawbw.com Flags: maintainer-feedback?(yuri@rawbw.com) CC: yuri@rawbw.com There is a missing ${CR} after the 'Connection: close' line that breaks pos= ting ports to the server ... the following patch corrects it ... # diff -cr /tmp/300.statistics 300.statistics *** /tmp/300.statistics Sat Feb 4 08:07:42 2017 --- 300.statistics Sat Feb 4 08:09:20 2017 *************** *** 159,165 **** if [ -n "${http_header_proxy_auth}" ]; then txt=3D"${txt}${CR}${NL}Proxy-Authorization: ${http_header_proxy_auth}"; fi txt=3D"${txt}${CR}${NL}User-Agent: bsdstats-${CURR_VERSION}" txt=3D"${txt}${CR}${NL}Connection: close" ! if [ -n "${content_type}" ]; then txt=3D"${txt}${NL}Content-Type: ${content_type}"; fi if [ -n "${body}" ]; then txt=3D"${txt}${CR}${NL}Content-Length: ${#body= }"; fi txt=3D"${txt}${CR}${NL}${CR}${NL}${body}" --- 159,165 ---- if [ -n "${http_header_proxy_auth}" ]; then txt=3D"${txt}${CR}${NL}Proxy-Authorization: ${http_header_proxy_auth}"; fi txt=3D"${txt}${CR}${NL}User-Agent: bsdstats-${CURR_VERSION}" txt=3D"${txt}${CR}${NL}Connection: close" ! if [ -n "${content_type}" ]; then txt=3D"${txt}${CR}${NL}Content-Type: ${content_type}"; fi if [ -n "${body}" ]; then txt=3D"${txt}${CR}${NL}Content-Length: ${#body= }"; fi txt=3D"${txt}${CR}${NL}${CR}${NL}${body}=E2=80=9D --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-216808-13>