Skip to content

Commit 30a4f12

Browse files
committed
Merge pull request cpp-netlib#71 from wilx/master
Pull request, Cygwin fix and one more change.
2 parents d19dd2b + 938df57 commit 30a4f12

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

boost/network/protocol/http/server/impl/parsers.ipp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,9 @@ namespace boost { namespace network { namespace http {
2424

2525
BOOST_NETWORK_INLINE void parse_version(std::string const & partial_parsed, fusion::tuple<uint8_t,uint8_t> & version_pair) {
2626
using namespace boost::spirit::qi;
27+
std::string::const_iterator it = partial_parsed.begin();
2728
parse(
28-
partial_parsed.begin(), partial_parsed.end(),
29+
it, partial_parsed.end(),
2930
(
3031
lit("HTTP/")
3132
>> ushort_
@@ -37,8 +38,9 @@ namespace boost { namespace network { namespace http {
3738

3839
BOOST_NETWORK_INLINE void parse_headers(std::string const & input, std::vector<request_header_narrow> & container) {
3940
using namespace boost::spirit::qi;
41+
std::string::const_iterator it = input.begin();
4042
parse(
41-
input.begin(), input.end(),
43+
it, input.end(),
4244
*(
4345
+(alnum|(punct-':'))
4446
>> lit(": ")

boost/network/support/is_tcp.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,4 @@ namespace boost { namespace network {
2323

2424
} // namespace boost
2525

26-
#endif // BOOST_NETWORK_SUPPORT_IS_TCP_HPP_20100622
26+
#endif // BOOST_NETWORK_SUPPORT_IS_TCP_HPP_20100622

boost/network/support/is_udp.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,4 @@ namespace boost { namespace network {
2424

2525
} // namespace boost
2626

27-
#endif // BOOST_NETWORK_SUPPORT_IS_UDP_HPP_20100622
27+
#endif // BOOST_NETWORK_SUPPORT_IS_UDP_HPP_20100622

0 commit comments

Comments
 (0)