Skip to content

Commit

Permalink
Merge branch 'feat/workflow-backend' into deploy/dev
Browse files Browse the repository at this point in the history
  • Loading branch information
Yeuoly committed Mar 21, 2024
2 parents 8648cf0 + fa673f9 commit 930d8b5
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion api/core/workflow/nodes/http_request/entities.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def check_config(cls, v, values):
return v

class Body(BaseModel):
type: Literal['none', 'form-data', 'x-www-form-urlencoded', 'raw', 'json']
type: Literal['none', 'form-data', 'x-www-form-urlencoded', 'raw-text', 'json']
data: Union[None, str]

variables: list[VariableSelector]
Expand Down
2 changes: 1 addition & 1 deletion api/core/workflow/nodes/http_request/http_executor.py
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ def _init_template(self, node_data: HttpRequestNodeData, variables: dict[str, An
self.headers['Content-Type'] = f'multipart/form-data; boundary={self.boundary}'
else:
self.body = urlencode(body)
elif node_data.body.type in ['json', 'raw']:
elif node_data.body.type in ['json', 'raw-text']:
self.body = original_body
elif node_data.body.type == 'none':
self.body = ''
Expand Down
1 change: 1 addition & 0 deletions docker/docker-compose.middleware.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ services:
# The DifySandbox configurations
API_KEY: dify-sandbox
GIN_MODE: 'release'
WORKER_TIMEOUT: 15
ports:
- "8194:8194"

Expand Down
1 change: 1 addition & 0 deletions docker/docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -299,6 +299,7 @@ services:
# The DifySandbox configurations
API_KEY: dify-sandbox
GIN_MODE: release
WORKER_TIMEOUT: 15
ports:
- "8194:8194"

Expand Down

0 comments on commit 930d8b5

Please sign in to comment.