jclouds-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrew Gaul <notificati...@github.com>
Subject Re: [jclouds/jclouds-labs] JCLOUDS-1005: Backblaze B2 skeleton and bucket ops (#270)
Date Fri, 20 May 2016 22:56:49 GMT
> +         requestJson = parser.parse(new String(request.getBody(), Charsets.UTF_8));
> +      } catch (Exception e) {
> +         throw Throwables.propagate(e);
> +      }
> +      JsonElement resourceJson = parser.parse(stringFromResource(resourceLocation));
> +      assertThat(requestJson).isEqualTo(resourceJson);
> +   }
> +
> +   /**
> +    * Ensures the request has a json header.
> +    *
> +    * @param request
> +    * @see RecordedRequest
> +    */
> +   private void assertContentTypeIsJSON(RecordedRequest request) {
> +      // TODO: where to add this?  something is stripping it off

Something strips off my Content-Type -- any idea how to force this?

---
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs/pull/270/files/08f67d68c03760ce134ccf217c3b1ee4487ac318#r64118407
Mime
View raw message