mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 22:01:14 +08:00
FEATURE: support HEAD request to /user-api-key/new
This allows us to cleanly sniff to find if it exists
This commit is contained in:
@ -44,6 +44,14 @@ TXT
|
||||
}
|
||||
end
|
||||
|
||||
context 'new' do
|
||||
it "supports a head request cleanly" do
|
||||
head :new
|
||||
expect(response.code).to eq("200")
|
||||
expect(response.headers["Auth-Api-Version"]).to eq("1")
|
||||
end
|
||||
end
|
||||
|
||||
context 'create' do
|
||||
|
||||
it "does not allow anon" do
|
||||
|
Reference in New Issue
Block a user