Skip to content

test: do explicit check of CORS headers#3142

Merged
whyrusleeping merged 1 commit intoversion/0.4.3-rc4from
test/CORS/defaults
Aug 31, 2016
Merged

test: do explicit check of CORS headers#3142
whyrusleeping merged 1 commit intoversion/0.4.3-rc4from
test/CORS/defaults

Conversation

@Kubuxu
Copy link
Copy Markdown
Member

@Kubuxu Kubuxu commented Aug 29, 2016

License: MIT
Signed-off-by: Jakub Sztandera kubuxu@protonmail.ch

@Kubuxu Kubuxu added the status/in-progress In progress label Aug 29, 2016
test_expect_success "GET to Gateway succeeds" '
curl -svX GET "http://127.0.0.1:$gwport/ipfs/$thash" 2>curl_output
'
cat curl_output
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this a stray debugging line?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, thanks.

@Kubuxu Kubuxu force-pushed the test/CORS/defaults branch from 6410418 to 52f7a74 Compare August 29, 2016 18:57
Comment thread test/sharness/t0112-gateway-cors.sh Outdated
grep "Access-Control-Allow-Origin:" curl_output &&
grep "Access-Control-Allow-Methods:" curl_output &&
grep "Access-Control-Allow-Origin:" curl_output | grep "\*" &&
grep "Access-Control-Allow-Methods:" curl_output | grep GET &&
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will match GETT :P

@Kubuxu Kubuxu force-pushed the test/CORS/defaults branch from 52f7a74 to 8b7a4a7 Compare August 29, 2016 19:11
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
@Kubuxu Kubuxu force-pushed the test/CORS/defaults branch from 8b7a4a7 to 3754803 Compare August 29, 2016 19:44
@Kubuxu Kubuxu added need/review Needs a review and removed status/in-progress In progress labels Aug 29, 2016
@Kubuxu Kubuxu added this to the ipfs-0.4.3-rc4 milestone Aug 29, 2016
@whyrusleeping
Copy link
Copy Markdown
Member

Resolves: #2778

@jbenet
Copy link
Copy Markdown
Member

jbenet commented Aug 31, 2016

What does this resolve? can you copy-paste the line or link to it in the review? or link from there to here?

@jbenet
Copy link
Copy Markdown
Member

jbenet commented Aug 31, 2016

Okay thanks @whyrusleeping

@jbenet
Copy link
Copy Markdown
Member

jbenet commented Aug 31, 2016

This LGTM. merge it and link to it in the review issue.

@whyrusleeping whyrusleeping merged commit ea343fb into version/0.4.3-rc4 Aug 31, 2016
@whyrusleeping whyrusleeping deleted the test/CORS/defaults branch August 31, 2016 04:47
@jbenet jbenet mentioned this pull request Aug 31, 2016
58 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

need/review Needs a review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants