AliSoftware / OHHTTPStubs

Stub your network requests easily! Test your apps with fake network data and custom response time, response code and headers!
MIT License
5.03k stars 601 forks source link

Typo in Wiki #261

Closed michaello closed 6 years ago

michaello commented 6 years ago

Hey there,

I noticed a small typo in headers:

// Swift
stub(isHost("mywebservice.com")) { request in
  // Stub it with our "wsresponse.json" stub file
  return OHHTTPStubsResponse(
    fileAtPath: OHPathForFile("wsresponse.json", type(of: self))!,
    statusCode: 200,
    headers: ["Content-Type":@"application/json"]
  )
}

I guess someone is fond of good ol' Obj-C with this @ 🐨

Cheers!

AliSoftware commented 6 years ago

Nicely spotted, thanks!

Just fixed it 👌