{"action":"created","issue":{"url":"https://api.github.com/repos/ampproject/amphtml/issues/6172","repository_url":"https://api.github.com/repos/ampproject/amphtml","labels_url":"https://api.github.com/repos/ampproject/amphtml/issues/6172/labels{/name}","comments_url":"https://api.github.com/repos/ampproject/amphtml/issues/6172/comments","events_url":"https://api.github.com/repos/ampproject/amphtml/issues/6172/events","html_url":"https://github.com/ampproject/amphtml/issues/6172","id":189040182,"number":6172,"title":"AMP-Form: Support content-type with extra character","user":{"login":"winstonma","id":1215090,"avatar_url":"https://avatars.githubusercontent.com/u/1215090?v=3","gravatar_id":"","url":"https://api.github.com/users/winstonma","html_url":"https://github.com/winstonma","followers_url":"https://api.github.com/users/winstonma/followers","following_url":"https://api.github.com/users/winstonma/following{/other_user}","gists_url":"https://api.github.com/users/winstonma/gists{/gist_id}","starred_url":"https://api.github.com/users/winstonma/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/winstonma/subscriptions","organizations_url":"https://api.github.com/users/winstonma/orgs","repos_url":"https://api.github.com/users/winstonma/repos","events_url":"https://api.github.com/users/winstonma/events{/privacy}","received_events_url":"https://api.github.com/users/winstonma/received_events","type":"User","site_admin":false},"labels":[{"id":255304071,"url":"https://api.github.com/repos/ampproject/amphtml/labels/Type:%20Question","name":"Type: Question","color":"207de5","default":false}],"state":"open","locked":false,"assignee":{"login":"mkhatib","id":2647,"avatar_url":"https://avatars.githubusercontent.com/u/2647?v=3","gravatar_id":"","url":"https://api.github.com/users/mkhatib","html_url":"https://github.com/mkhatib","followers_url":"https://api.github.com/users/mkhatib/followers","following_url":"https://api.github.com/users/mkhatib/following{/other_user}","gists_url":"https://api.github.com/users/mkhatib/gists{/gist_id}","starred_url":"https://api.github.com/users/mkhatib/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mkhatib/subscriptions","organizations_url":"https://api.github.com/users/mkhatib/orgs","repos_url":"https://api.github.com/users/mkhatib/repos","events_url":"https://api.github.com/users/mkhatib/events{/privacy}","received_events_url":"https://api.github.com/users/mkhatib/received_events","type":"User","site_admin":false},"assignees":[{"login":"mkhatib","id":2647,"avatar_url":"https://avatars.githubusercontent.com/u/2647?v=3","gravatar_id":"","url":"https://api.github.com/users/mkhatib","html_url":"https://github.com/mkhatib","followers_url":"https://api.github.com/users/mkhatib/followers","following_url":"https://api.github.com/users/mkhatib/following{/other_user}","gists_url":"https://api.github.com/users/mkhatib/gists{/gist_id}","starred_url":"https://api.github.com/users/mkhatib/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mkhatib/subscriptions","organizations_url":"https://api.github.com/users/mkhatib/orgs","repos_url":"https://api.github.com/users/mkhatib/repos","events_url":"https://api.github.com/users/mkhatib/events{/privacy}","received_events_url":"https://api.github.com/users/mkhatib/received_events","type":"User","site_admin":false}],"milestone":null,"comments":3,"created_at":"2016-11-14T06:48:11Z","updated_at":"2016-11-15T02:23:04Z","closed_at":null,"body":"I am currently using App Engine's endpoint as a backend service. I would like AMPed my website.\r\n\r\nIn order for the form to show the success message, it requires `content-type:application/json`. I tried the API call from App Engine, it returns `content-type:application/json; charset=UTF-8` with response status of 200. However the form showed the error message.\r\n\r\nSince I can't change the content-type of the App Engine's backend, is it possible that the AMP-Form can ignore the extra characters on the content-type (as long as `application/json` exist and response status of 2XX it treat the form submission as success).\r\n\r\nThanks a lot"},"comment":{"url":"https://api.github.com/repos/ampproject/amphtml/issues/comments/260528246","html_url":"https://github.com/ampproject/amphtml/issues/6172#issuecomment-260528246","issue_url":"https://api.github.com/repos/ampproject/amphtml/issues/6172","id":260528246,"user":{"login":"winstonma","id":1215090,"avatar_url":"https://avatars.githubusercontent.com/u/1215090?v=3","gravatar_id":"","url":"https://api.github.com/users/winstonma","html_url":"https://github.com/winstonma","followers_url":"https://api.github.com/users/winstonma/followers","following_url":"https://api.github.com/users/winstonma/following{/other_user}","gists_url":"https://api.github.com/users/winstonma/gists{/gist_id}","starred_url":"https://api.github.com/users/winstonma/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/winstonma/subscriptions","organizations_url":"https://api.github.com/users/winstonma/orgs","repos_url":"https://api.github.com/users/winstonma/repos","events_url":"https://api.github.com/users/winstonma/events{/privacy}","received_events_url":"https://api.github.com/users/winstonma/received_events","type":"User","site_admin":false},"created_at":"2016-11-15T02:23:03Z","updated_at":"2016-11-15T02:23:03Z","body":"Sorry I read the [CORS Requests in AMP](https://github.com/ampproject/amphtml/blob/master/spec/amp-cors-requests.md). But after further checking seems it is not CORS related.\r\n\r\nHere is the response header:\r\n> access-control-allow-credentials:true\r\n> access-control-allow-origin:https://cdn.ampproject.org\r\n> access-control-expose-headers:Cache-Control,Content-Encoding,Content-Length,content-type,Date,ETag,Expires,Pragma,Server,X-Google-GFE-Backend-Request-Cost\r\n> alt-svc:quic=\":443\"; ma=2592000; v=\"36,35,34\"\r\n> cache-control:no-cache, no-store, max-age=0, must-revalidate\r\n> content-encoding:gzip\r\n> content-length:205\r\n> content-type:application/json; charset=UTF-8\r\n> date:Tue, 15 Nov 2016 02:19:53 GMT\r\n> etag:\"J9Y_9xYOOIwvSmPEeUuqsaoy_BA/wkX8DBMm5WbpvkDACL84WCvqg3E\"\r\n> expires:Mon, 01 Jan 1990 00:00:00 GMT\r\n> pragma:no-cache\r\n> server:GSE\r\n> status:200\r\n> x-content-type-options:nosniff\r\n> x-frame-options:SAMEORIGIN\r\n> x-xss-protection:1; mode=block\r\n\r\nAfter the AMP page received the response, it shows the error message on the form."}}
{"actor":{"display_login":"winstonma"}}