]> granicus.if.org Git - curl/commit
pipeline: fix mistakenly trying to pipeline POSTs
authorDaniel Stenberg <daniel@haxx.se>
Fri, 12 May 2017 14:29:06 +0000 (16:29 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Fri, 12 May 2017 15:01:02 +0000 (17:01 +0200)
commit4cdb1be8246caefd0c0e777f6da4128d7f51b2a2
treec4a85793df904ac84e26184df4311cdda091175b
parentbc3866e3eb3f4da60bb0d6fbe8e4e38ae8ce943f
pipeline: fix mistakenly trying to pipeline POSTs

The function IsPipeliningPossible() would return TRUE if either
pipelining OR HTTP/2 were possible on a connection, which would lead to
it returning TRUE even for POSTs on HTTP/1 connections.

It now returns a bitmask so that the caller can differentiate which kind
the connection allows.

Fixes #1481
Closes #1483
Reported-by: stootill at github
lib/url.c