How to block off fuel return line in Classic Industries Fuel Sending Unit.

It will be fine if that cap is rated for gasoline, otherwise it might break down and leek later.