from binascii import unhexlify

def request(context, flow):
    if (flow.request.host.find('change.me') > -1 and flow.request.path.find('somethingaboutcurrency') > -1):
       

def response(context, flow):
    
    if (flow.request.host.find('change.me') > -1 and flow.request.path.find('somethingaboutcurrency') > -1):
        flow.response.content = unhexlify('[..]ffffff[..]')
from binascii import unhexlify

#This can be replace by using the "decode" function on the reponse
def request(context, flow):
    if (flow.request.host.find('change.me') > -1 and flow.request.path.find('somethingaboutcurrency') > -1):
       flow.request.headers['Accept-Encoding'] = ['']


def response(context, flow):
    
    if (flow.request.host.find('change.me') > -1 and flow.request.path.find('somethingaboutcurrency') > -1):
        flow.response.content = unhexlify('[..]ffffff[..]') 
        #this ca be enhanced by using the protobuf to deserialize the message
Add missing line on the script and some comment
Add missing line on the script and some comment

  from binascii import unhexlify
  
+ #This can be replace by using the "decode" function on the reponse
  def request(context, flow):
      if (flow.request.host.find('change.me') > -1 and flow.request.path.find('somethingaboutcurrency') > -1):
-        
+        flow.request.headers['Accept-Encoding'] = ['']
+ 
  
  def response(context, flow):
      
      if (flow.request.host.find('change.me') > -1 and flow.request.path.find('somethingaboutcurrency') > -1):
-         flow.response.content = unhexlify('[..]ffffff[..]')
+         flow.response.content = unhexlify('[..]ffffff[..]') 
+         #this ca be enhanced by using the protobuf to deserialize the message
Add missing line on the script and some comment
## Code Before:
from binascii import unhexlify

def request(context, flow):
    if (flow.request.host.find('change.me') > -1 and flow.request.path.find('somethingaboutcurrency') > -1):
       

def response(context, flow):
    
    if (flow.request.host.find('change.me') > -1 and flow.request.path.find('somethingaboutcurrency') > -1):
        flow.response.content = unhexlify('[..]ffffff[..]')
## Instruction:
Add missing line on the script and some comment
## Code After:
from binascii import unhexlify

#This can be replace by using the "decode" function on the reponse
def request(context, flow):
    if (flow.request.host.find('change.me') > -1 and flow.request.path.find('somethingaboutcurrency') > -1):
       flow.request.headers['Accept-Encoding'] = ['']


def response(context, flow):
    
    if (flow.request.host.find('change.me') > -1 and flow.request.path.find('somethingaboutcurrency') > -1):
        flow.response.content = unhexlify('[..]ffffff[..]') 
        #this ca be enhanced by using the protobuf to deserialize the message