2

当使用 type: DELETE调用 forge.ajax 时,生成的请求(在 Proxy 上观察到并且也在服务器端记录)是一个GET

另一方面,“POST”和“PUT”似乎工作得很好。

例子:

window.forge.ajax({
  type: 'DELETE', 
  url: 'http://www.boorgle.com/api/v1/friends/4f463d32ff47b20018000002', 
  error: function() {console.log('error', arguments);}, 
  success: function() {console.log('success', arguments);}
})

知道如何解决这个问题吗?

4

1 回答 1

1

我假设这是在iOS上?

我们使用的底层 HTTP 库不支持 DELETE 动词,但我刚刚检查过,这似乎已经修复,所以我们应该能够在未来的平台版本中解决这个问题:我会在什么时候更新这个答案那个会发生!

于 2012-11-11T10:09:09.933 回答