http-service: set content-type to application/json in various responses

This commit is contained in:
Adam
2017-06-12 19:11:15 -04:00
parent 2c6a19c434
commit cae29ff754
9 changed files with 42 additions and 20 deletions

View File

@@ -85,6 +85,7 @@ public class ItemService
ItemEntry item = get(itemId);
if (item != null)
{
response.type("application/json");
response.header(RUNELITE_ITEM_CACHE, "HIT");
return item.toItem();
}
@@ -92,6 +93,7 @@ public class ItemService
item = fetch(itemId);
if (item != null)
{
response.type("application/json");
response.header(RUNELITE_ITEM_CACHE, "MISS");
return item.toItem();
}