質問編集履歴
1
typo
title
CHANGED
File without changes
|
body
CHANGED
@@ -37,7 +37,7 @@
|
|
37
37
|
return new Promise(resolve => {
|
38
38
|
let url = 'http://example.com/path/to'
|
39
39
|
let body = 'key=value'
|
40
|
-
let headers = new Headers({Content-Type": "application/x-www-form-urlencoded"})
|
40
|
+
let headers = new Headers({"Content-Type": "application/x-www-form-urlencoded"})
|
41
41
|
let options = new RequestOptions({headers: headers})
|
42
42
|
|
43
43
|
return this.http.post(url, body, options)
|