The response status for some HEAD calls was changed to follow the
HTTP specification a while back. Specifically, any call that supports
both GET and HEAD methods should return the same response code. The
API docs still list all successfull HEAD requests with a response code
of 204, which is not correct in all cases.
This patch adjusts the expected response status for HEAD calls to
match the actual implementation.
Reviewed: https:/ /review. openstack. org/124243 /git.openstack. org/cgit/ openstack/ identity- api/commit/ ?id=363af890511 e8cb047ea07c4e4 a381680366941f
Committed: https:/
Submitter: Jenkins
Branch: master
commit 363af890511e8cb 047ea07c4e4a381 680366941f
Author: Nathan Kinder <email address hidden>
Date: Thu Sep 25 18:34:54 2014 -0700
Correct response status for HEAD requests
The response status for some HEAD calls was changed to follow the
HTTP specification a while back. Specifically, any call that supports
both GET and HEAD methods should return the same response code. The
API docs still list all successfull HEAD requests with a response code
of 204, which is not correct in all cases.
This patch adjusts the expected response status for HEAD calls to
match the actual implementation.
Change-Id: I6f518ebbe00a0b 2860ca5db0d10b9 3f313abd488
Related-bug: #1334368